package net.chery.service;

import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * @author gai
 */
public class FileEvent extends ApplicationEvent {
    private final Date date;

    public FileEvent(String source,Date date) {
        super(source);
        this.date = date;
    }

    @Override
    public String getSource() {
        return (String) super.getSource();
    }

    public Date getDate() {
        return date;
    }
}
